﻿namespace ELF.Core
{
    public static class ConsoleLog
    {
        public static void Info(string message)
        {
            var timestamp = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            var logMessage = $"info: [{timestamp}] {message}";

            // 同时输出到控制台和调试窗口
            Console.WriteLine(logMessage);
            System.Diagnostics.Debug.WriteLine(logMessage);

            // 可选：写入文件
            // File.AppendAllText("startup.log", logMessage + Environment.NewLine);
        }
    }
}
